<h1>Listing protocols</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Body</th>
    <th>Status</th>
    <th>Type</th>
    <th>User</th>
  </tr>

<% @protocols.each do |protocol| %>
  <tr>
    <td><%=h protocol.title %></td>
    <td><%=h protocol.body %></td>
    <td><%=h protocol.status_id %></td>
    <td><%=h protocol.type_id %></td>
    <td><%=h protocol.user_id %></td>
    <td><%= link_to 'Show', protocol %></td>
    <td><%= link_to 'Edit', edit_protocol_path(protocol) %></td>
    <td><%= link_to 'Destroy', protocol, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New protocol', new_protocol_path %>